from api.login_api import LoginApi


def HeaderToken(mobile="13800000002", password="123456"):
    body = {"mobile": mobile, "password": password}
    resp = LoginApi.login(body)
    token = "Bearer " + resp.json().get("data")
    headers = {'Authorization': token}
    return headers


if __name__ == '__main__':
    l = HeaderToken()
    print(l)
